package com.tianji.learning.service;

import com.tianji.common.domain.dto.PageDTO;
import com.tianji.learning.domain.dto.ReplyDTO;
import com.tianji.learning.domain.po.InteractionReply;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.domain.query.ReplyPageQuery;
import com.tianji.learning.domain.vo.ReplyVO;

/**
 * <p>
 * 互动问题的回答或评论 服务类
 * </p>
 *
 * @author 赵博凯
 * @since 2025-10-25
 */
public interface IInteractionReplyService extends IService<InteractionReply> {

    void saveReply(ReplyDTO replyDTO);


    PageDTO<ReplyVO> queryReplyPage(ReplyPageQuery replyDTO,boolean isStudent);

    PageDTO<ReplyVO> queryReply(ReplyPageQuery query, boolean isStudent);
    
    /**
     * 隐藏或显示评论/回答
     * @param id 回答或评论的ID
     * @param hidden 是否隐藏 (true-隐藏, false-显示)
     */
    void hiddenReply(Long id, Boolean hidden);
}